package com.walter.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 角色菜单关联表
 * </p>
 *
 * @author ch
 * @since 2021-05-25
 */
@Data
@Accessors(chain = true)
@TableName("sys_role_menu")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "角色菜单关联表", subTypes = {RoleMenu.class})
public class RoleMenu extends Model<RoleMenu> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "角色表主键")
    @TableField("role_id")
    private Integer roleId;

    @ApiModelProperty(value = "菜单表主键")
    @TableField("menu_id")
    private Integer menuId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;


    public static final String ROLE_ID = "role_id";

    public static final String MENU_ID = "menu_id";

    public static final String CREATE_TIME = "create_time";

    @Override
    protected Serializable pkVal() {
        return null;
    }

}
